******************
**** Table A5 ****
******************

use "$data/telephone_surveydata_ready" , clear

local controls teamdummy* firststickerdummy* preratiow1 lastdebt_demeanedw1 prepaymentsmadedummy*  


log using "$output/table a5", replace

reg q8 i.treatmentidentitynew##c.above  i.treatmentidentitynew##c.timepassed  i.treatmentidentitynew##i.avgweighteddaymedian `controls' if treatmentall!=0 , vce(cluster dayteam) 

reg q8 i.treatmentidentitynew##c.above  i.treatmentidentitynew##c.timepassed  i.treatmentidentitynew##i.avgpaydatedummymedian `controls' if treatmentall!=0 , vce(cluster dayteam) 

log close
 
